package org.emet.entity.biz;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Lob;
import javax.persistence.Table;

import org.emet.jee.console.entity.BaseEntity;
import org.hibernate.annotations.Index;

@Table(name = "T_REG_RES")
@Entity
public class RegistrationResource extends BaseEntity {

	private Long regId;
	private byte[] deadProvenPic;

	@Index(name = "t_reg_res_reg_id")
	@Column(unique = true)
	public Long getRegId() {
		return regId;
	}

	public void setRegId(Long regId) {
		this.regId = regId;
	}

	@Lob
	@Column(nullable = true)
	public byte[] getDeadProvenPic() {
		return deadProvenPic;
	}

	public void setDeadProvenPic(byte[] deadProvenPic) {
		this.deadProvenPic = deadProvenPic;
	}

}
